package com.belf.web.controller.console.data;

import com.belf.common.core.controller.BaseController;
import com.belf.common.core.domain.AjaxResult;
import com.belf.console.domain.entity.PromtHelper;
import com.belf.console.service.PromtHelperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * PromtHelperController
 *
 * @author l
 * @since 2024/11/4 16:36
 */
@RestController
@RequestMapping("/console/promtHelper")
public class PromtHelperController extends BaseController {

    @Autowired
    private PromtHelperService promtHelperService;

    @PostMapping("/getKeyword")
    @ResponseBody
    public AjaxResult requirement(@RequestBody PromtHelper promtHelper) {
        return AjaxResult.success(promtHelperService.getKeyword(promtHelper));
    }

}
